package com.lesama.string.method;

public class StringMethod4 {
    public static void main(String[] args) {
        String str = "192.128.1.1";
        String[] parts = str.split("\\."); // .匹配任意字符S
        for (int i = 0; i < parts.length; i++) {
            System.out.println(parts[i]);
        }
    }
}
